package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 db_order
 * 
 * @author ruoyi
 * @date 2025-06-08
 */
public class DbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户id */
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** 付款金额 */
    @Excel(name = "付款金额")
    private String paymentAmount;

    /** 地址id */
    private Long addressId;

    /** 优惠券领取id */
    private Long envelopeId;

    /** 订单号 */
    private String orderNumber;

    /** 订单时间 */
    private String orderTime;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payType;

    /** 配送费 */
    @Excel(name = "配送费")
    private String deliveryFee;

    /** 备用1 */
    private String standby1;

    /** 备用2 */
    private String standby2;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }

    public void setPaymentAmount(String paymentAmount) 
    {
        this.paymentAmount = paymentAmount;
    }

    public String getPaymentAmount() 
    {
        return paymentAmount;
    }

    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }

    public void setEnvelopeId(Long envelopeId) 
    {
        this.envelopeId = envelopeId;
    }

    public Long getEnvelopeId() 
    {
        return envelopeId;
    }

    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }

    public void setOrderTime(String orderTime) 
    {
        this.orderTime = orderTime;
    }

    public String getOrderTime() 
    {
        return orderTime;
    }

    public void setPayType(String payType) 
    {
        this.payType = payType;
    }

    public String getPayType() 
    {
        return payType;
    }

    public void setDeliveryFee(String deliveryFee) 
    {
        this.deliveryFee = deliveryFee;
    }

    public String getDeliveryFee() 
    {
        return deliveryFee;
    }

    public void setStandby1(String standby1) 
    {
        this.standby1 = standby1;
    }

    public String getStandby1() 
    {
        return standby1;
    }

    public void setStandby2(String standby2) 
    {
        this.standby2 = standby2;
    }

    public String getStandby2() 
    {
        return standby2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("orderStatus", getOrderStatus())
            .append("paymentAmount", getPaymentAmount())
            .append("addressId", getAddressId())
            .append("envelopeId", getEnvelopeId())
            .append("orderNumber", getOrderNumber())
            .append("orderTime", getOrderTime())
            .append("payType", getPayType())
            .append("deliveryFee", getDeliveryFee())
            .append("standby1", getStandby1())
            .append("standby2", getStandby2())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
